package com.cy.jt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class SpringSecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringSecurityApplication.class);
//        encodePwd();
    }
    //通过Spring Security 中的BCryptPasswordEncoder
//    static void encodePwd(){
//        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
//        String newPwd = encoder.encode("123456");
//        System.out.println(newPwd);
//    }

}
